package com.jianying.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.jianying.service.InfoSynchronousService;

@RestController
@RequestMapping("/synchronous")
public class SynchronousController {
	
	@Resource
	private InfoSynchronousService infoSynchronousService;
	
	@RequestMapping(value="/tenants",method=RequestMethod.POST)
	public void synchronousTenant(){
		infoSynchronousService.synchronousTenant();
	}
	
	@RequestMapping(value="/customers",method=RequestMethod.POST)
	public void synchronousCustomer(){
		infoSynchronousService.synchronousCustomer();
	}
	
	@RequestMapping(value="/products",method=RequestMethod.POST)
	public void synchronousProduct(){
		infoSynchronousService.synchronousProduct();
	}
	

	@RequestMapping(value="/orders",method=RequestMethod.POST)
	public void synchronousOrder(){
		infoSynchronousService.synchronousOrder();	
	}
	
	@RequestMapping(value="/settlements",method=RequestMethod.POST)
	public void synchronousSettlement(){
		infoSynchronousService.synchronousSettlement();
	}
	
	@RequestMapping(value="/notices",method=RequestMethod.POST)
	public void synchronousNotice(){
		infoSynchronousService.synchronousNotice();
	}

}
